class Cylinder:
    r = None
    h = None

    def __init__(self, h, r):
        self.h = h
        self.r = r

    def GetVolume(self):
        return 3.14 * (self.r ** 2) * self.h

c = Cylinder(1, 2)

print(f"圆柱体的体积: {c.GetVolume()}")